var onlineContinuationModule = (function () {
    return {
     	/**
        * 在线续方首页医生列表
        * @param {Object} param
        * @param {Object} callBack
        */
        onlineDoctorList: function (param, callBack) {
            utilModule.post({
                url: "doctor/findDoctorIndex",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
     	/**
        * 在线续方医生详情
        * @param {Object} param
        * @param {Object} callBack
        */
        onlineDoctorDetail: function (param, callBack) {
            utilModule.post({
                url: "doctor/doctorDetail",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
     	/**
        * 在线续方订单列表
        * @param {Object} param
        * @param {Object} callBack
        */
        onlineOrderList: function (param, callBack) {
            utilModule.get({
                url: "userCenter/myPrescriptionList",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
     	/**
        * 在线续方订单详情
        * @param {Object} param
        * @param {Object} callBack
        */
        onlineOrderDetail: function (param, callBack) {
            utilModule.get({
                url: "userCenter/getOnePrescription",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
     	/**
        * 送货地址查询
        * @param {Object} param
        * @param {Object} callBack
        */
        userAdressSelect: function (param, callBack) {
            utilModule.post({
                url: "userCenter/getUserAddress",
                data: param,
                needJson: true, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
     	/**
        * 新增地址
        * @param {Object} param
        * @param {Object} callBack
        */
        userAdressNew: function (param, callBack) {
            utilModule.post({
                url: "userCenter/addUserAddress",
                data: param,
                needJson: true, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
     	/**
        * 修改地址
        * @param {Object} param
        * @param {Object} callBack
        */
        userAdressChange: function (param, callBack) {
            utilModule.post({
                url: "userCenter/updateUserAddress",
                data: param,
                needJson: true, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
     	/**
        * 删除地址
        * @param {Object} param
        * @param {Object} callBack
        */
        userAdressDelate: function (param, callBack) {
            utilModule.post({
                url: "userCenter/deleteUserAddress",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
      
     	/**
        * 提交购药订单
        * @param {Object} param
        * @param {Object} callBack
        */
        userMedicalSubmit: function (param, callBack) {
            utilModule.post({
                url: "userCenter/addMallOrderInfo",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
        /**
        * 添加在线续方
        * @param {Object} param
        * @param {Object} callBack
        */
        submitOrder: function (param, callBack) {
            utilModule.post({
                url: "continuation/submitOrder",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
        /**
        * 购药列表
        * @param {Object} param
        * @param {Object} callBack
        */
        getMallOrderList: function (param, callBack) {
            utilModule.post({
                url: "userCenter/getMallOrderList",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
        /**
        * 查看单个购药订单
        * @param {Object} param
        * @param {Object} callBack
        */
        getOneMallOrder: function (param, callBack) {
            utilModule.post({
                url: "userCenter/getOneMallOrder",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
        /**
        * 确认收货
        * @param {Object} param
        * @param {Object} callBack
        */
        updateMallOrderList: function (param, callBack) {
            utilModule.post({
                url: "userCenter/updateMallOrderList",
                data: param,
                needJson: true, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
        /**
        * 快递查询
        * @param {Object} param
        * @param {Object} callBack
        * https://m.kuaidi100.com/query?type=yuantong&postid=888725048070513884
        */
        getkuai100: function (param, callBack) {
            utilModule.get({
            	commonUrl:"https://m.kuaidi100.com/",
                url: "index_all.html",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
        /**
        * 退货申请
        * @param {Object} param
        * @param {Object} callBack
        */
        insertMallOrderRefund: function (param, callBack) {
            utilModule.post({
                url: "mallOrderRefund/insertMallOrderRefund",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
        /**
        * 退货填写快递单
        * @param {Object} param
        * @param {Object} callBack
        */
        updateMallOrderRefund: function (param, callBack) {
            utilModule.post({
                url: "mallOrderRefund/updateMallOrderRefund",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
                /**
        * 退货详情
        * @param {Object} param
        * @param {Object} callBack
        */
        getmalltuihuo: function (param, callBack) {
            utilModule.post({
                url: "mallOrderRefund/get",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        }
        
  	}
})();
